package com.fqgj.xjd.user.client.request;


import com.fqgj.xjd.user.client.enums.UserIndustryEnum;
import org.apache.commons.lang3.StringUtils;

import java.io.Serializable;

/**
 * User: zhangxingyun
 * Date: 2017-07-23
 * Time: 14:10:22.401
 * TableDesc:用户基本信息－－工作信息
 */
public class UserWork implements Serializable {
    private static final long serialVersionUID = -5298726812639477068L;
    /**
     * 用户id
     */
    private String userCode;
    /**
     * 职业类别
     */
    private Integer careerType;
    /**
     * 职业
     */
    private String career;
    /**
     *行业ID
     * @see UserIndustryEnum
     */
    private Integer industryId;
    /**
     *行业
     */
    private String industry;
    /**
     * 公司名称
     */
    private String companyName;
    /**
     * 工作省份
     */
    private Integer provinceId;
    /**
     * 公司所在是省
     */
    private String province;
    /**
     * 工作城市
     */
    private Integer cityId;
    /**
     * 公司所在市
     */
    private String city;
    /**
     * 公司详细地址
     */
    private String address;
    /**
     *
     */
    private String phone;
    /**
     * 月收入
     */
    private Integer salary;
    /**
     * 发薪日
     */
    private Integer payDay;

    private String fromWhen;

    private String officeArea;

    private String officePinCode;

    private String categoryId;

    public Integer getIndustryId() {
        return industryId;
    }

    public UserWork setIndustryId(Integer industryId) {
        this.industryId = industryId;
        return this;
    }

    public String getIndustry() {
        return industry;
    }

    public UserWork setIndustry(String industry) {
        this.industry = industry;
        return this;
    }

    public String getCategoryId() {
        return categoryId;
    }

    public UserWork setCategoryId(String categoryId) {
        this.categoryId = categoryId;
        return this;
    }

    public String getOfficeArea() {
        return officeArea;
    }

    public UserWork setOfficeArea(String officeArea) {
        this.officeArea = officeArea;
        return this;
    }

    public String getOfficePinCode() {
        return officePinCode;
    }

    public UserWork setOfficePinCode(String officePinCode) {
        this.officePinCode = officePinCode;
        return this;
    }

    public String getFromWhen() {
        return fromWhen;
    }

    public UserWork setFromWhen(String fromWhen) {
        this.fromWhen = fromWhen;
        return this;
    }

    public UserWork() {
    }

    public String getUserCode() {
        return userCode;
    }

    public UserWork setUserCode(String userCode) {
        this.userCode = userCode;
        return this;
    }

    public Integer getCareerType() {
        return careerType;
    }

    public UserWork setCareerType(Integer careerType) {
        this.careerType = careerType;
        return this;
    }

    public String getCompanyName() {
        return this.companyName;
    }

    public UserWork setCompanyName(String companyName) {
        this.companyName = companyName;
        return this;
    }

    public String getProvince() {
        return this.province;
    }

    public UserWork setProvince(String province) {
        this.province = province;
        return this;
    }

    public String getCity() {
        return this.city;
    }

    public UserWork setCity(String city) {
        this.city = city;
        return this;
    }

    public String getAddress() {
        return this.address;
    }

    public UserWork setAddress(String address) {
        this.address = address;
        return this;
    }

    public String getPhone() {
        return this.phone;
    }

    public UserWork setPhone(String phone) {
        this.phone = phone;
        return this;
    }

    public Integer getSalary() {
        return this.salary;
    }

    public UserWork setSalary(Integer salary) {
        this.salary = salary;
        return this;
    }

    public Integer getPayDay() {
        return this.payDay;
    }

    public UserWork setPayDay(Integer payDay) {
        this.payDay = payDay;
        return this;
    }

    public Integer getProvinceId() {
        return provinceId;
    }

    public UserWork setProvinceId(Integer provinceId) {
        this.provinceId = provinceId;
        return this;
    }

    public Integer getCityId() {
        return cityId;
    }

    public UserWork setCityId(Integer cityId) {
        this.cityId = cityId;
        return this;
    }

    public String getCareer() {
        return career;
    }

    public UserWork setCareer(String career) {
        this.career = career;
        return this;
    }

    public Boolean infoComplete() {
        return
                StringUtils.isNotBlank(companyName)
                        && careerType != null
                        //&& StringUtils.isNotBlank(officeArea)
                        && StringUtils.isNotBlank(officePinCode)
                        && StringUtils.isNotBlank(fromWhen)
                        //&& StringUtils.isNotBlank(province)
                        //&& StringUtils.isNotBlank(city)
                        && salary != null;
    }


}
